package com.penjin.android.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lxl on 2016/4/7.
 */
public class News extends BaseNews{


    private List<BaseNews> baseNewses ;

    public News(){

        baseNewses = new ArrayList<BaseNews>() ;

    }

    public void addNews( BaseNews baseNews ){

        baseNewses.add(baseNews) ;

    }


    public BaseNews getItem( int position ){

        return baseNewses.get(position) ;

    }

    public int getCount(){

        return baseNewses.size() ;

    }

}
